package com.fauks.ssm.springbyanno.condition;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * 返回要导入容器的全部类
 */
public class MyImportSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        //返回要导入容器中的全路径类名
        return new String[]{"com.fauks.demo.springbyanno.bean.Res", "com.fauks.demo.springbyanno.bean.Yellow"};
    }
}
